class Param < ActiveRecord::Base

  def self.get_value(name)
    p = Param.find_by_Name "#{name}"
    if p
      return p.Value.to_s
    else
      return name.to_s
    end
  end

  def self.set_value(name,value)
    p = Param.find_by_Name(name)
    if p and value
      p.Value = value
      p.save!
    end
  end
end
